package com.demo.spring.memory3;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(
	wiringMode = AiServiceWiringMode.EXPLICIT, // 手动装配
	chatModel = "openAiChatModel", // 指定模型beanName
	streamingChatModel = "openAiStreamingChatModel",
	chatMemoryProvider = "chatMemoryProvider"
)
public interface ConsultantService {
	
	public Flux<String> chat(@MemoryId String memoryId, @UserMessage String message);

}
